package com.yulinlin.admin.modules.ad.domain;

import com.yulinlin.admin.modules.ad.domain.enums.AdSpaceEnums;
import com.yulinlin.common.domain.SuperEntity;

import com.yulinlin.data.core.anno.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;



@Data
@ApiModel("广告位")
@JoinTable("ad_space")
public class AdSpaceEntity extends SuperEntity<AdSpaceEntity>  {





        @NotEmpty(message = "必填")
        @ApiModelProperty("编码")
        @JoinWhere
        @JoinField
        private String code;

        @NotEmpty(message = "必填")
        @ApiModelProperty("标题")
        @JoinWhere
        @JoinField
        private String title;

        @NotEmpty(message = "必填")
        @ApiModelProperty("说明")
        @JoinWhere
        @JoinField
        private String content;

        @NotEmpty(message = "必填")
        @ApiModelProperty("广告位类型")
        @JoinWhere
        @JoinField
        private String spaceType;


        @NotEmpty(message = "必填")
        @ApiModelProperty("状态")
        @JoinWhere
        @JoinField
        private AdSpaceEnums.status status;


}
